package com.spring.cloud.consume.service;

import com.spring.cloud.consume.config.FeignCofig;
import com.spring.cloud.consume.config.HystrixProvide;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-provide",path = "/provide",configuration = FeignCofig.class,fallback = HystrixProvide.class)
public interface FeignProvideService {
    /**
     * 服务提供者地址
     * @param name
     * @return
     */
    @RequestMapping("/ribbon")
     String feign(@RequestParam("name") String name);
}
